import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
//1、导入请求包axios
import axios from 'axios'
Vue.config.productionTip = false

import '@/assets/iconfont/iconfont.css'

router.afterEach((to,from)=>{
  window.scrollTo(0,0);
});
// axios.defaults.baseURL='http://localhost:9090/renren-admin/'
// axios.defaults.baseURL='http://81.69.26.236:90/renren-admin/'
axios.defaults.baseURL='http://www.zwcbtsbk.com/renren-admin'
Vue.prototype.$http = axios //可以通过$http来发起请求


Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
